package com.service.dao.enums;

import com.google.common.collect.Lists;
import lombok.Getter;

import java.util.List;

public class MerchantCommodityEnum {


    public enum Status {

        /**
         * 删除
         */
        DELETE(0),
        /**
         * 上架
         */
        PUT_AWAY(1),
        /**
         * 下架
         */
        TAKE_OFF(2);

        @Getter
        private Integer code;

        Status(Integer code) {
            this.code = code;
        }
    }

    public static List<Integer> listUseStatus(){
        return Lists.newArrayList(Status.PUT_AWAY.code,Status.TAKE_OFF.code);
    }

}
